/* 移动端重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 移除默认样式 */
ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

/* 移动端适配 */
html {
  font-size: 37.5px;
  /* 1rem = 37.5px，基于375px设计稿 */
}

@media screen and (max-width: 320px) {
  html {
    font-size: 32px;
  }
}

@media screen and (min-width: 414px) {
  html {
    font-size: 41.4px;
  }
}

@media screen and (min-width: 640px) {
  html {
    font-size: 64px;
  }
}

/* 禁用长按选择 */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 允许输入框选择 */
input,
textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 0;
  background: transparent;
}